Optimal. Leaf size=15 \[ -\frac{\sin \left (a+\frac{b}{x^2}\right )}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0150678, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {3380, 2637} \[ -\frac{\sin \left (a+\frac{b}{x^2}\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3380
Rule 2637
Rubi steps
\begin{align*} \int \frac{\cos \left (a+\frac{b}{x^2}\right )}{x^3} \, dx &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \cos (a+b x) \, dx,x,\frac{1}{x^2}\right )\right )\\ &=-\frac{\sin \left (a+\frac{b}{x^2}\right )}{2 b}\\ \end{align*}
Mathematica [A] time = 0.0031249, size = 15, normalized size = 1. \[ -\frac{\sin \left (a+\frac{b}{x^2}\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.024, size = 14, normalized size = 0.9 \begin{align*} -{\frac{1}{2\,b}\sin \left ( a+{\frac{b}{{x}^{2}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.14863, size = 18, normalized size = 1.2 \begin{align*} -\frac{\sin \left (a + \frac{b}{x^{2}}\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.55821, size = 39, normalized size = 2.6 \begin{align*} -\frac{\sin \left (\frac{a x^{2} + b}{x^{2}}\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 6.09938, size = 22, normalized size = 1.47 \begin{align*} \begin{cases} - \frac{\sin{\left (a + \frac{b}{x^{2}} \right )}}{2 b} & \text{for}\: b \neq 0 \\- \frac{\cos{\left (a \right )}}{2 x^{2}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cos \left (a + \frac{b}{x^{2}}\right )}{x^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]